<template>
  <p v-for="(item, index) in arr" :key="index">
  索引值：{{ index }} --- 元素的内容是：{{ item }}
  </p>
  <v-if> </v-if>
</template>
<script setup>
import VIf from "./VIf.vue";
const arr = ["HTML","CSS","JavaScript","JQuery","Vue"];
</script>
<style>
</style>